<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>

	<body>
		<!-- points 属性定义多边形每个角的 x 和 y 坐标 -->
		<svg height="210" width="500">
			<polygon points="200,10 250,190 160,210" style="fill: lime; stroke: purple; stroke-width: 1" />
		</svg>

		<svg height="210" width="500">
			<polygon points="100,10 40,198 190,78 10,78 160,198" style="fill: lime; stroke: purple; stroke-width: 5; fill-rule: nonzero" />
		</svg>

		<svg height="210" width="500">
			<polygon points="100,10 40,198 190,78 10,78 160,198" style="fill: lime; stroke: purple; stroke-width: 5; fill-rule: evenodd" />
		</svg>

		<style>
			svg {
				/* 默认 宽300 高150 */
				border: 1px solid red;
			}
		</style>
	</body>
</html>
